@model VotingSystem.Models.SurveyQuestion

@{
    ViewData["Title"] = "删除问题";
}

<div class="container">
    <h1>删除问题</h1>

    <div class="alert alert-danger">
        <h4>确定要删除这个问题吗？</h4>
        <p>此操作不可恢复。</p>
    </div>

    <div class="card mb-4">
        <div class="card-body">
            <h5 class="card-title">@Model.QuestionText</h5>
            <div class="text-muted small">
                <p>问题类型: @Model.Type</p>
                <p>必答题: @(Model.IsRequired ? "是" : "否")</p>
                <p>问题顺序: @Model.Order</p>
            </div>
        </div>
    </div>

    <form asp-action="Delete">
        <input type="hidden" asp-for="Id" />
        <input type="hidden" asp-for="SurveyId" />
        <button type="submit" class="btn btn-danger">删除</button>
        <a asp-controller="Surveys" asp-action="Details" asp-route-id="@Model.SurveyId" class="btn btn-secondary">返回问卷</a>
    </form>
</div> 